package com.example.demo.mapper;

import com.example.demo.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-12-06
 * Time: 19:58
 */
@Mapper
public interface ArticleInfoMapper {
    //添加方法
    public int add(@Param("articleInfo")ArticleInfo articleInfo);
    public int addGetId(@Param("articleInfo")ArticleInfo articleInfo);
    public int delById(@Param("id")Integer id);
    public int updateTitle(@Param("id")Integer id,@Param("title") String title);

    public List<ArticleInfo> getAll();
}
